package com.zq.设计模式23种.创建型模式.单例模式;

/**
 * @author Jiu
 * @description：静态内部类 todo
 * @date 2020/11/24   11:01
 **/
public class SingletonS {

    private static SingletonS instanc;

    public SingletonS() {
    }

    public static SingletonS getInstance() {
        if (instanc == null) {
            instanc = new SingletonS();
        }
        return instanc;
    }

}
